var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var articleInfoSchema = new Schema({
    "article_name": String,
    "category": String,
    "time": String,
    "author": String,
    "read_num": Number,
    "like_num": Number,
    "comment_num": Number,
    "abstract": String,
    "article_content": String,
    "article_comment": [{
        "comment_name": String,
        "comment_time": String,
        "comment_content": String
    }]
});

module.exports = mongoose.model('articleInfo',articleInfoSchema);